package org.dromara.report.service;

import lombok.RequiredArgsConstructor;
import org.dromara.common.web.core.BaseService;
import org.dromara.report.domain.Report;
import org.dromara.report.mapper.ReportMapper;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * 主页获取报表信息
 */
@RequiredArgsConstructor
@Service
public class ReportServiceImpl extends BaseService {

  private final ReportMapper baseMapper;

  /**
   * 查询订单列表
   */
  public List<Report> getOrderLine(Report bo, Collection<Integer> typeIds) {
    return baseMapper.getOrderList(bo,typeIds);
  }

  /**
   * 查询产品订单销售额列表
   */
  public List<Report> getProductOrderSort(Report bo, Collection<Integer> typeIds) {
    return baseMapper.getProductOrderSort(bo,typeIds);
  }

  /**
   * 查询订单信息列表
   */
  public List<Report> getOrderMsgLine(Report bo, Collection<Integer> typeIds) {
    return baseMapper.getOrderMsg(bo,typeIds);
  }

}
